{extends file="global.html"} 
{block name=function}
<script type="text/javascript">
var layer;
$(function(){
    layui.use(['layer'], function(){
        layer = layui.layer;        
        layer.config({
            zIndex:10000
        });
    })
})

HKUC.ajax_request.defaultSuccessHandlers= {
    'success':function(rslt_msg,rslt_data){ 
       layer.alert(rslt_msg,{
            icon:1
        }); 
    },
    'error':function(rslt_msg,rslt_data){
        layer.alert(rslt_msg,{
            icon:2
        });                   
    },
    'noPower':function(msg,data){
        
        layer.alert(msg,{
            icon:2
        });
    }
};
HKUC.ajax_request.defaultErrorHandlers={
    403:function(text,rerun){
        layer.alert('登录超时，请刷新重新登录',{
            icon:2
        });
	},
    404:function(text,rerun){
        layer.alert('页面不存在',{
            icon:2
        });
    }
};

</script>
{$smarty.block.child}
{/block}
{block name=global}
{*
<div class="box content_list">
	<div class="box_title">
        <h3 class="left">{$title.operation}
			<span id="parent_info_title">{strip}
			{block name='parent_info'}
				{if $parent_info} <a href="{$html->url(array_merge($args,['parent_id'=>false]))}"><span title="类型:{$parent_info.cname}">父级</span>:[{$parent_info.title}]</a>{/if}
			{/block}
			{/strip}</span>
		</h3>
		{if $actions}
		<div class="quick_action left">
		  操作：
			{foreach $actions as $item}
            {if !$item}{continue}{/if}
			<a class="qa {$item.icon}" href="{$html->url($item.url|default:'#')}">{$item.title}</a>
			{/foreach}
        </div>
		{/if}
		<div class="clear"></div>
	</div>
    <div>
           
    </div>
</div>
*}
<div class="admin_main">
    <div class="admin_header_fixed">
        <div class="admin_header clearfix">
            <div class="title"><i></i>{$title.operation}</div>
            {if $actions}
    		<div class="action">
                <b></b>
    			{foreach $actions as $item}{strip}
                {if !$item}{continue}{/if}
                <a class="layui-btn layui-btn-danger layui-btn-small {$item.class}" href="{call url url=$item.url}"><i class="fa {$item.icon}"></i> {$item.title}</a>
    			{/strip}{/foreach}
            </div>
    		{/if}
        </div>
    </div>
    <div class="admin_base">
    {block name=base}{/block}
    </div>
    <div class="admin_bottom">
    {block name=bottom}{/block}
    </div>
</div>

{/block}

{block name=script}
<script>
{if $error}
layui.use(['layer'], function(){
  var layer = layui.layer
  layer.msg('{$error}',{
    offset :['50px', '35%']
  });
});
{/if}
</script>
{$smarty.block.child}
{/block}
